// 例子6

const foo = {}

foo.a = 1;
foo.b = 'b';
foo.c = function () {};
console.log(foo) // {a: 1, b: "b", c: ƒ}
foo = {}; // Uncaught TypeError: Assignment to constant variable